#include <string>

typedef enum 
{
	prOK,
	prError,
	prParse,
}EParseResult;

typedef enum 
{
	cmHint,
	cmWarring.
	cmError,
	cmFatalError,
}ECompilerMsgType;

void OnCompilerMsg(ECompilerMsgType a_MsgType, const string a_UnitFileName, int a_Line, int a_Pos, const string a_Msg);

class CCompiler
{
public:
	bool CompileAsm(const void a_Source, string a_SwfFileName);

	string GetErrorMsg();
	int GetErrorPos();

	void SetOnCompilerMsg(OnCompilerMsg)
private:
	int		ErrorPos;
	string  ErrorMsg;
	
};